package com.learn.designPatterns.behavioral.strategy;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-10-25 15:50
 */
public class Client {

    public static void main(String[] args) {
        Duck duck = new Duck();

        duck.setQuackBehavior(new Quack());
        duck.performQuack();
        duck.setQuackBehavior(new Squeak());
        duck.performQuack();
    }
}
